package com.ruicar.afs.cloud.common.modules.afscorebusiness.enums;

import com.ruicar.afs.cloud.common.core.enums.AfsBaseEnum;
import com.ruicar.afs.cloud.common.core.enums.annotations.AfsEnum;

/**
 * <p>Description: </p>
 *
 * @author ZC.GUO
 * @version 1.0
 * @date create on 2020-05-14 20:27
 */
public enum WhetherEnum implements AfsBaseEnum {
    @AfsEnum(key = "1", desc = "是", mapping = {"afs-case=1", "afs-contract=yes"})
    YES("yes", "是"),
    @AfsEnum(key = "0", desc = "否", mapping = {"afs-case=0", "afs-contract=no"})
    NO("no", "否");

    WhetherEnum(String code, String desc) {
        this.code = code;
        this.desc = desc;
    }

    private String code;
    private String desc;

    public String getCode() {
        return code;
    }
}
